//
//  ViewController.m
//  ShareCode
//
//  Created by erice on 15/10/29.
//  Copyright © 2015年 erice. All rights reserved.
//

#import "ViewController.h"
#import "BMWTabber.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    UIView *view1 =[UIView new];
    view1.backgroundColor=[UIColor orangeColor];
    UIView* view2 =[UIView new];
    view2.backgroundColor=[UIColor redColor];
    UIView* view3 =[UIView new];
    view3.backgroundColor=[UIColor blackColor];

    
    BMWTabber * tabber =[BMWTabber tabberWithFrame:CGRectMake(0, screen_height-300, [UIScreen mainScreen].bounds.size.width, 300) tabbernames:@[@"签到",@"直播课"] withViews:@[view1,view2]];
    
    [self.view addSubview:tabber];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
